import request from '@/utils/request'

export const getCartTotalService = () => {
  return request.get('/cart/total')
}

export const getCartListService = () => {
  return request.get('/cart/list')
}

export const addCartService = (obj) => {
  return request.post('/cart/add', obj)
}

export const UpdateCartService = (obj) => {
  return request.post('/cart/update', obj)
}

export const DeleteCartService = (obj) => {
  return request.post('/cart/clear', obj)
}
